﻿/* File full name:  cluster_test.cpp
 *
 * Author:          zhouchuncheng
 * Time:            july,2021
 *
 * copyright:       CETC-50 & Army Engineering University of PLA
 */
#include <ros/ros.h>
#include <iostream>
#include <cmath>
#include <stdio.h>
#include <string.h>


int main(int argc, char **argv)
{
    ros::init(argc, argv, "imu2txt");
    ros::NodeHandle nh("~");
    int i = atoi(argv[1]);
    std::cout<<"i: "<<i<<std::endl;
    std::string strID(argv[1]);
    std::cout<<"strID: "<<strID<<std::endl;

    int x = 55;
    nh.setParam("uav5_x", x);
    //nh.setParam("/uav1/cluster_test/uav1_x",2);
    nh.getParam("uav1_x", x);
    std::cout<<x<<std::endl;
    std::cout<<argc<<std::endl;
    for(int i = 0; i < argc; i++)
    {
        std::cout<<argv[i]<<std::endl;
    }
    while(ros::ok())
    {
        ros::spinOnce();
    }
    return 0;
}

